# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=fuzzdiff
pkgver=1.0
pkgrel=5
pkgdesc="A simple tool designed to help out with crash analysis during fuzz testing. It selectively 'un-fuzzes' portions of a fuzzed file that is known to cause a crash, re-launches the targeted application, and sees if it still crashes."
arch=('any')
url='http://vsecurity.com/resources/tool/'
license=('GPL')
depends=("python2")
groups=('blackarch' 'blackarch-fuzzer')
source=("$pkgname::http://vsecurity.com/download/tools/$pkgname.py")
sha512sums=('c0ce0235f8f0026988c60a3217233c36d829ecdf')

prepare() {
  sed -i 's|/usr/bin/python|/usr/bin/env python2|' $pkgname
}

package() {
  install -Dm 755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
}

